<?php

// your configuration file, e.g., config/autoload/global.php
return array(
    'navigation' => array(
        'default' => array(
            array(
                'label' => 'Home',
                'route' => 'home',
            ),
            array(
                'label' => 'Admin User',
                'route' => 'user-admin'
            ),
            array(
                'label' => 'Admin Product',
                'route' => 'product-admin',
                'pages' => array(
                    array(
                        'label' => 'Product',
                        'route' => 'product-admin/paginator',
                    ),
                    array(
                        'label' => 'Product Category',
                        'route' => 'product-admin/doaction',
                        'controller' => 'product-admin-controller',
                        'action' => 'list-category'
                    ),
                    array(
                        'label' => 'Product Maker',
                        'route' => 'product-admin/doaction',
                        'controller' => 'product-admin-controller',
                        'action' => 'list-maker'
                    )
                )
            ),
            array(
                'label' => 'Home Product',
                'route' => 'home',
                'controller' => 'product-controller',
                'action' => 'index'
            ),
            array(
                'label' => 'Home User',
                'route' => 'user-login',
                'controller' => 'user-controller',
                'action' => 'login',
                'pages' => array(
                    array(
                        'label' => 'Đăng ký',
                        'route' => 'user-register'
                    ),
                    array(
                        'label' => 'Đăng nhập',
                        'route' => 'user-login'
                    )
                )
            ),
            array(
                'label' => 'Product Ajax',
                'route' => 'product-ajax',
                'controller' => 'product-ajax-controller',
                'action' => 'index'
            ),
            array(
                'label' => 'User Ajax',
                'route' => 'ajax-user-login',
                'controller' => 'ajax-user-controller',
                'action' => 'login',
                'pages' => array(
                    array(
                        'label' => 'Đăng ký',
                        'route' => 'ajax-user-register'
                    ),
                    array(
                        'label' => 'Đăng nhập',
                        'route' => 'ajax-user-login'
                    )
                )
            ),
        ),
    ),
    'service_manager' => array(
        'factories' => array(
            'navigation-config' => 'Zend\Navigation\Service\DefaultNavigationFactory',
        ),
    ),
);
